package com.qtjf.qtmoneyservice.widget;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.TextView;

import com.qtjf.qtmoneyservice.R;

import java.util.List;

/**
 * Created by Administrator on 2016/12/6 0006.
 */

public class AimDialog extends Dialog {

    Context context;


    TextView okBt;
    TextView cancelBt;

    Handler handler;
    List<String> lists;

   // EditText editText;

   /* public SendMessageDialog(Context context){
        super(context);
        this.context = context;
    }*/

    public AimDialog(Context context, int themeResId, Handler handler) {
        super(context, themeResId);
        this.context = context;
        this.handler = handler;
    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.setContentView(R.layout.aim_layout);


        okBt = (TextView) findViewById(R.id.ok_bt);
        cancelBt = (TextView) findViewById(R.id.cancel_bt);
        //editText= (EditText) findViewById(R.id.edit_text);



        okBt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {


                AimDialog.this.dismiss();
            }
        });

        cancelBt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                AimDialog.this.dismiss();
            }
        });


       /* picker1.setOnSelectedListener(new ScrollPickerView.OnSelectedListener() {
            @Override
            public void onSelected(List<String> data, int position) {

                List<String> list=lists.subList(position,lists.size());

            }
        });*/


    }


    public void closeDialog() {
        this.dismiss();
    }

}
